package com.etc.mapper;

import com.etc.entity.Hospital;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface HospitalMapper {

    Hospital queryById(int id);

    List<Hospital> queryBy(String text);

    List<Hospital> queryAll();

    void deleteById(int id);

    List<Hospital> queryByArea(int area);

    void insertHospital(@Param("id") int id,@Param("name") String name,@Param("site") String site,@Param("area") int area);

    void updateHospital(Hospital hospital);
}
